<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>embedme: libemb::InputReader Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>libemb</b></li><li class="navelem"><a class="el" href="classlibemb_1_1_input_reader.html">InputReader</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classlibemb_1_1_input_reader-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">libemb::InputReader Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>参数输入获取类  
 <a href="classlibemb_1_1_input_reader.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_arg_util_8h_source.html">ArgUtil.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4d681346e4dca274d9f7ee7c0c8a6250"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classlibemb_1_1_input_reader.html">InputReader</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_input_reader.html#a4d681346e4dca274d9f7ee7c0c8a6250">waitInput</a> ()</td></tr>
<tr class="memdesc:a4d681346e4dca274d9f7ee7c0c8a6250"><td class="mdescLeft">&#160;</td><td class="mdescRight">等待输入(直至Enter按下才会返回)  <a href="classlibemb_1_1_input_reader.html#a4d681346e4dca274d9f7ee7c0c8a6250">More...</a><br /></td></tr>
<tr class="separator:a4d681346e4dca274d9f7ee7c0c8a6250"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d055dcc11ca790f18e28882ce89c34b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_input_reader.html#a3d055dcc11ca790f18e28882ce89c34b">isString</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:a3d055dcc11ca790f18e28882ce89c34b"><td class="mdescLeft">&#160;</td><td class="mdescRight">检查输入字符串是否相同  <a href="classlibemb_1_1_input_reader.html#a3d055dcc11ca790f18e28882ce89c34b">More...</a><br /></td></tr>
<tr class="separator:a3d055dcc11ca790f18e28882ce89c34b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bb17b6026781aa7ca80b22543d0b35b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_input_reader.html#a1bb17b6026781aa7ca80b22543d0b35b">size</a> ()</td></tr>
<tr class="memdesc:a1bb17b6026781aa7ca80b22543d0b35b"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取输入字符串的长度  <a href="classlibemb_1_1_input_reader.html#a1bb17b6026781aa7ca80b22543d0b35b">More...</a><br /></td></tr>
<tr class="separator:a1bb17b6026781aa7ca80b22543d0b35b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adceeae0cd7e6326f5c7e82dfda19d48d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_input_reader.html#adceeae0cd7e6326f5c7e82dfda19d48d">asInt</a> ()</td></tr>
<tr class="memdesc:adceeae0cd7e6326f5c7e82dfda19d48d"><td class="mdescLeft">&#160;</td><td class="mdescRight">将输入字符串转换为整数  <a href="classlibemb_1_1_input_reader.html#adceeae0cd7e6326f5c7e82dfda19d48d">More...</a><br /></td></tr>
<tr class="separator:adceeae0cd7e6326f5c7e82dfda19d48d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87c954d6ae7472f0f0e10741ecdb575e"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_input_reader.html#a87c954d6ae7472f0f0e10741ecdb575e">asFloat</a> ()</td></tr>
<tr class="memdesc:a87c954d6ae7472f0f0e10741ecdb575e"><td class="mdescLeft">&#160;</td><td class="mdescRight">将输入字符串转换为浮点数  <a href="classlibemb_1_1_input_reader.html#a87c954d6ae7472f0f0e10741ecdb575e">More...</a><br /></td></tr>
<tr class="separator:a87c954d6ae7472f0f0e10741ecdb575e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adce77e8ef5ab166706c43ff7970757c2"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_input_reader.html#adce77e8ef5ab166706c43ff7970757c2">asString</a> ()</td></tr>
<tr class="memdesc:adce77e8ef5ab166706c43ff7970757c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回输入字符串  <a href="classlibemb_1_1_input_reader.html#adce77e8ef5ab166706c43ff7970757c2">More...</a><br /></td></tr>
<tr class="separator:adce77e8ef5ab166706c43ff7970757c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f8563daa144422b5a589cbe54a219cb"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_input_reader.html#a4f8563daa144422b5a589cbe54a219cb">asCString</a> ()</td></tr>
<tr class="memdesc:a4f8563daa144422b5a589cbe54a219cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回C语言格式的输入字符串  <a href="classlibemb_1_1_input_reader.html#a4f8563daa144422b5a589cbe54a219cb">More...</a><br /></td></tr>
<tr class="separator:a4f8563daa144422b5a589cbe54a219cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>参数输入获取类 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a4f8563daa144422b5a589cbe54a219cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f8563daa144422b5a589cbe54a219cb">&#9670;&nbsp;</a></span>asCString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * libemb::InputReader::asCString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回C语言格式的输入字符串 </p>
<dl class="section return"><dt>Returns</dt><dd>const char* 输入字符串 </dd></dl>

</div>
</div>
<a id="a87c954d6ae7472f0f0e10741ecdb575e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87c954d6ae7472f0f0e10741ecdb575e">&#9670;&nbsp;</a></span>asFloat()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float libemb::InputReader::asFloat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>将输入字符串转换为浮点数 </p>
<dl class="section return"><dt>Returns</dt><dd>float 字符串字面值 </dd></dl>

</div>
</div>
<a id="adceeae0cd7e6326f5c7e82dfda19d48d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adceeae0cd7e6326f5c7e82dfda19d48d">&#9670;&nbsp;</a></span>asInt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libemb::InputReader::asInt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>将输入字符串转换为整数 </p>
<dl class="section return"><dt>Returns</dt><dd>int 字符串字面值 </dd></dl>

</div>
</div>
<a id="adce77e8ef5ab166706c43ff7970757c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adce77e8ef5ab166706c43ff7970757c2">&#9670;&nbsp;</a></span>asString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string libemb::InputReader::asString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回输入字符串 </p>
<dl class="section return"><dt>Returns</dt><dd>std::string 输入字符串 </dd></dl>

</div>
</div>
<a id="a3d055dcc11ca790f18e28882ce89c34b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d055dcc11ca790f18e28882ce89c34b">&#9670;&nbsp;</a></span>isString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool libemb::InputReader::isString </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>检查输入字符串是否相同 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 匹配 </dd>
<dd>
false 不匹配 </dd></dl>

</div>
</div>
<a id="a1bb17b6026781aa7ca80b22543d0b35b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1bb17b6026781aa7ca80b22543d0b35b">&#9670;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libemb::InputReader::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取输入字符串的长度 </p>
<dl class="section return"><dt>Returns</dt><dd>int 字符串长度 </dd></dl>

</div>
</div>
<a id="a4d681346e4dca274d9f7ee7c0c8a6250"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d681346e4dca274d9f7ee7c0c8a6250">&#9670;&nbsp;</a></span>waitInput()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_input_reader.html">InputReader</a> &amp; libemb::InputReader::waitInput </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>等待输入(直至Enter按下才会返回) </p>
<dl class="section return"><dt>Returns</dt><dd>返回实例引用 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/<a class="el" href="_arg_util_8h_source.html">ArgUtil.h</a></li>
<li>src/ArgUtil.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
